<?php

namespace app\common\model;

use app\common\model\TimeModel;

class ShopManage extends TimeModel
{

    protected $name = "shop_manage";

    protected $deleteTime = "delete_time";
    protected $defaultSoftDelete = 0;

    public function userInfo()
    {
        return $this->hasOne(User::class, 'id', 'user_id');
    }

    public function shopInfo()
    {
        return $this->hasOne(Shop::class, 'id', 'shop_id');
    }
}